# !usr/bin/env python
# -*- coding:utf-8 -*-

'''
 Description  : 
 Version      : 1.0
 Author        : qww
 Date         : 2021-05-02 16:57:13
 LastEditors  : qww
 LastEditTime : 2021-05-02 19:32:00
'''



class FailCode:
    PARAM_ERROR = 501
    NOT_EXIST_ERROR = 502
    FAIL_UPLOAD = 502


class SuccessCode:
    SUCCESS = 200
    SUCCESS_UPLOAD = 201


result_data = {
    'code': None,
    'msg': None,
    'count': None,
    'data': None
}


upload_result = {
    'code': None,
    'msg': None,
    'data': None
}


class Tv:
    def __init__(self):
        self.id = None
        self.name = None
        self.img_url = None
        self.play_url = None
        self.describe = None
        self.video_url = None
        self.type = 'tv'


class Movie:
    def __init__(self):
        self.id = None
        self.name = None
        self.img_url = None
        self.play_url = None
        self.describe = None
        self.video_url = None
        self.score = None
        self.actor = None
        self.scenario = None
        self.type = 'movie'


class Bangumi:
    def __init__(self):
        self.id = None
        self.name = None
        self.img_url = None
        self.play_url = None
        self.describe = None
        self.score = None
        self.type = 'bangumi'
